package cn.dogger.auth.controller;

import cn.dogger.system.api.service.DemoApiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dogger
 * 2022/10/14 17:22
 */
@RestController
@RefreshScope
@RequestMapping("demo")
public class DemoController {

    private final DemoApiService service;

    public DemoController(DemoApiService service) {
        this.service = service;
    }

    @GetMapping("aa")
    public String aa(){
        System.out.println("bbbbbbbbbbbbbbb");
        return "123";
    }
    @GetMapping("bb")
    public String bb(){

        return service.getString("666");
    }


}
